import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'; // Import Provider from react-redux
import App from './App';
import './assets/styles/index.scss';
import store from './store/index'; // Import the store from its file
// 导入相对时间的创建
import relativeTime from 'dayjs/plugin/relativeTime';

//  中文包
import 'dayjs/locale/zh-cn';
import dayjs from 'dayjs';
// 配置上想对时间
dayjs.extend(relativeTime);

// 配置上中文包
dayjs.locale('zh-cn');
ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);
